<!-- BEGIN PAGE HEADER-->   
<div class="row-fluid">
   <div class="span12">
	   <!-- BEGIN THEME CUSTOMIZER-->
	   <div id="theme-change" class="hidden-phone">
		   <i class="icon-cogs"></i>
			<span class="settings">
				<span class="text">Theme:</span>
				<span class="colors">
					<span class="color-default" data-style="default"></span>
					<span class="color-gray" data-style="gray"></span>
					<span class="color-purple" data-style="purple"></span>
					<span class="color-navy-blue" data-style="navy-blue"></span>
				</span>
			</span>
	   </div>
	   <!-- END THEME CUSTOMIZER-->
	  <!-- BEGIN PAGE TITLE & BREADCRUMB-->
	   <h3 class="page-title">
		 Dashboard
		 <small>admin</small>
	  </h3>
	   <ul class="breadcrumb">
		   <li>
			   <a href="#"><i class="icon-home"></i></a><span class="divider">&nbsp;</span>
		   </li>
		   <li>
			   <a href="#">Dashboard</a> <span class="divider">&nbsp;</span>
		   </li>	
		   <li>
			   <a href="#">Bài viết</a> <span class="divider-last">&nbsp;</span>
		   </li>		   
	   </ul>
	   <!-- END PAGE TITLE & BREADCRUMB-->
   </div>
</div>
<!-- END PAGE HEADER-->
<div class="row-fluid">   
   <div class="span12">
   	  <div style="margin-bottom:10px;">   	  	
   	  	<?php echo $this->Html->link('<i class="icon-plus icon-white"></i> Create',array('controller'=>'baiviets','action'=>'add'),array('class'=>'btn btn-warning','escape'=>false)); ?>
   	  </div>
      <!-- BEGIN SAMPLE TABLE widget-->
      <div class="widget">
         <div class="widget-title">
            <h4><i class="icon-reorder"></i>Managed Table</h4>
            <span class="tools">
                <a href="javascript:;" class="icon-chevron-down"></a>
            </span>
    	 </div>
         <div class="widget-body">
         	<div class="control-group">
				<label class="control-label">Title</label>
				<div class="controls">
					<?php echo $this->Form->input('',array('placeholder'=>'Title','class'=>'span6 popovers','data-trigger'=>'hover','data-content'=>'Điền thông tin tên bài viết','data-original-title'=>'Thông tin')); ?>					
				</div>
			</div>
            <table class="table table-striped table-bordered table-advance table-hover">
               <thead>
                  <tr>
                     <th style="width:20%"><i class="icon-briefcase"></i> Title</th>
                     <th><i class="icon-user"></i> Body</th>
                     <th style="width:20%"><i class="icon-cog"></i> Action</th>                     
                  </tr>
               </thead>
               <tbody>
               		<?php foreach($baiviets as $baiviet) : ?>
                  <tr>
                     <td>
                        <?php echo $this->Html->link($baiviet['BaiViet']['title'],array('controller'=>'baiviets','action'=>'view',$baiviet['BaiViet']['id'])); ?>
                     </td>
                     <td>
                     	<?php echo $baiviet['BaiViet']['body'] ?>
                     </td>
                     <td>
                     	<?php echo $this->Html->link('<i class="icon-edit"></i> Edit',array('controller'=>'baiviets','action'=>'edit',$baiviet['BaiViet']['id']),array('class'=>'btn btn-primary','escape'=>false)); ?>
                     	<?php echo $this->Form->postLink('<i class="icon-trash"></i> Delete',array('action'=>'delete',$baiviet['BaiViet']['id']),array('class'=>'btn btn-danger','escape'=>false)); ?>
                 	</td>
                  </tr>                  
                  	<?php endforeach; ?>
               </tbody>
            </table>
            <div class="row-fluid">
            <?php echo $this->element('paging'); ?>
            </div>
         </div>
      </div>
      <!-- END SAMPLE TABLE widget-->
   </div>
</div>